import axios from "axios";
axios.interceptors.request.use(config => {
    const token = localStorage.getItem('Authorization'); // 确保这个函数能同步获取到 Token
    if (token) {
        config.headers['Authorization'] = token;
    }
    return config;
}, error => {
    return Promise.reject(error);
});